//
//  Logwindow.swift
//  Keyboard
//
//  Created by tucici on 2023/4/19.
//

import UIKit

class Logwindow: UIWindow {
    static let share = Logwindow()
  
    lazy var input : UITextView = {
        let view = UITextView()
        view.textColor = UIColor.white
        view.font = UIFont.systemFont(ofSize: 12)
        view.backgroundColor = UIColor.clear
//        view.isEditable = false
        self.addSubview(view)
        view.snp.makeConstraints { make in
            make.edges.equalToSuperview().inset(10)
        }
        let w = APP.window?.frame.size.width ?? 0
        let h = APP.window?.frame.size.height ?? 0
        self.frame = CGRect(x:5, y:h - 200, width: w - 10, height: 200)
        self.backgroundColor = "#000000".color(0.8)
        self.windowLevel =  .alert
        self.makeKeyAndVisible()
        return view
    }()

}
